<%@ taglib prefix="s" uri="/struts-tags"%>
<style>
.container {
	background: none repeat scroll 0 0 #F4FBEA;
	border: 1px solid #B2D281;
	margin: 0;
	padding: 5px;
	width: 850px;
}

.searchLabel {
	color: #383838;
	text-align: right;
	font-weight: bold;
	text-decoration: none;
	font: normal bold 0.92em/ 1em monospace;
}

.fieldLabelLeft {
	color: #383838;
	text-align: left;
	font-weight: bold;
	text-decoration: none;
	font: normal bold 0.92em/ 1em monospace;
}

.selectField {
	color: black;
	text-align: left;
	padding: 2px;
	text-decoration: none;
	font: normal normal 0.88em/ 1em monospace;
	border-bottom: 1px solid #b2d281;
	border-left: 1px solid #b2d281;
	border-right: 1px solid #b2d281;
	border-top: 1px solid #b2d281;
}
input[type="text"] {
	color: black;
	text-align: left;
	padding: 2px;
	text-decoration: none;
	font: normal normal 0.88em/ 1em monospace;
	border-bottom: 1px solid #b2d281;
	border-left: 1px solid #b2d281;
	border-right: 1px solid #b2d281;
	border-top: 1px solid #b2d281;
}

fieldset {
	border-bottom: 0px solid #b2d281;
	border-left: 1px solid #b2d281;
	border-right: 0px solid #b2d281;
	border-top: 1px solid #b2d281;
}

legend {
background: none repeat scroll 0 0 #b2d281;
	padding: 0.2em 0.5em;
	border: 1px solid green;
	color: black;
	font: normal bold 0.88em/ 1em monospace;
	text-align: right;
}
</style>
<script language="javascript" >
function createFiles()
{
	
	document.frm.submit();
		
}
</script>

<div class="container">
<div style="margin: 0 0 0 30px;">
<s:form theme="simple" name="frm" >
<div id="console" ></div>
<table cellspacing="0" cellpadding="4" border="0" width="100%">
	<tr>
		<td width="100%">
		<fieldset><legend>Basic Details</legend>
		<table>
			<tr>
				<td class="searchLabel"><s:text name="label.iwantto" />:</td>
				<td><s:radio name="propertyTo" list="#{'1':'Sell','2':'Buy','3':'Rent'}"  /></td>

			</tr>
			<tr>
				<td><s:text name="label.city" />:</td><td><s:select name="city"
						headerValue="--- Select City ---" headerKey="0"
						list="#application.city"   listValue="name" listKey="id"
						value="%{city}" /></td>
			</tr>
			<tr>
				<td><s:text name="label.address" />:</td>
				<td><s:textarea rows="5" cols="20" name="propertyAddress"/></td>
			</tr>
			<tr>
				<td><s:text name="label.locality" />:</td><td><s:select name="locality"
						headerValue="--- Select Locality ---" headerKey="0"
						list="#application.locality"   listValue="name" listKey="id"
						/></td>
			</tr>
			
		</table>
	</fieldset>
	</td>
	</tr>
		<tr>
		<td width="100%">
		<fieldset><legend>Property Details</legend>
		<table cellspacing="0" cellpadding="4" border="0"
			style="margin: 10px 10px 0 30px;">
			<tr>
				<td><s:text name="label.propertyType" />:</td>
				<td><s:select name="porpertyType" headerValue="--- Property Type ---" headerKey="0" list="#application.propertyType"
				   listValue="name" listKey="id"/></td>
			</tr>
			<tr>
				<td><s:text name="label.transactionType" />:</td>
				<td><s:select name="transactionType" headerValue="--- TransactionType ---" headerKey="0" list="#application.transactionType"   
				listValue="transactionType" listKey="id"/></td>
			</tr>
			<tr>
				<td><s:text name="label.bedrooms" />:</td>
				<td><s:select name="bedrooms" list="#application.bedrooms"   
				listValue="name" listKey="id"/></td>
			</tr>
			<tr>
				<td><s:text name="label.bathrooms" />:</td>
				<td><s:select name="bathrooms" list="#application.bathrooms"   
				listValue="name" listKey="id"/></td>
			</tr>
			<tr>
				<td><s:text name="label.furnished" />:</td>
				<td><s:select name="furnished" list="#application.furnished"   
				listValue="furnishedType" listKey="id"/></td>
			</tr>
			<tr>
				<td><s:text name="label.constructionAge" />:</td>
				<td><s:select name="constructionAge" list="#application.constructionAge"   
				listValue="constructionType" listKey="id"/></td>
			</tr>
			<tr>
				<td><s:text name="label.ownership" />:</td>
				<td><s:select name="ownership" list="#application.ownership"   
				listValue="ownershipType" listKey="id"/></td>
			</tr>
					
			<tr>
				<td><s:text name="label.coveredArea" />:</td>
				<td><s:textfield name="coveredArea" /><s:select name="coveredAreaIn" list="#application.areaMesurement"   
				listValue="areaMesurementType" listKey="id"/></td>
			</tr>
			<tr>
				<td><s:text name="label.plotArea" />:</td>
				<td><s:textfield name="plotArea" /><s:select name="plotAreaIn" list="#application.areaMesurement"   
				listValue="areaMesurementType" listKey="id"/></td>
			</tr>
			<tr>
				<td><s:text name="label.totalPrice" />:</td>
				<td><s:textfield name="totalPrice" /><s:select name="totalPriceIn" list="#application.priceIn"   
				listValue="priceType" listKey="id"/></td>
			</tr>
			<tr>
				<td><s:text name="label.unitPrice" />:</td>
				<td><s:textfield name="unitPrice" /><s:select name="unitPriceIn" list="#application.priceIn"   
				listValue="priceType" listKey="id"/></td>
			</tr>
		</table>
	</fieldset>
	</td>
	</tr>
		<tr>
		<td width="100%">
		<fieldset><legend>Additional Information</legend>
		<table cellspacing="0" cellpadding="4" border="0"
			style="margin: 10px 10px 0 30px;">
			<tr>
				<td><s:text name="label.availableFrom" />:</td>
				<td><s:select name="availableFromMonth" list="#application.month"   
				listValue="monthName" listKey="monthValue"/>
				<s:select name="availableFromYear" list="#application.year" listValue="yearName" listKey="yearName"/>
				</td>
			</tr>
			<tr>
				<td><s:text name="label.availableUnit" />:</td>
				<td><s:textfield name="availableUnit" /></td>
			</tr>
			<tr>
				<td><s:text name="label.floorNo" />:</td>
				<td><s:textfield name="floorNo" /></td>
			</tr>
				<tr>
				<td><s:text name="label.totalFloor" />:</td>
				<td><s:textfield name="totalFloor" /></td>
			</tr>

			
			<tr>
				<td><s:text name="label.priceRange" />:</td>
				<td><s:select name="priceRange" headerValue="--- Price Range ---" headerKey="0" list="#application.priceRange"   
				listValue="range" listKey="id"/></td>
			</tr>
			
		</table>
	</fieldset>
	</td>
	</tr>
		<tr>
		<td width="100%">
		<fieldset><legend>Amenities</legend>
		<table cellspacing="0" cellpadding="4" border="0"
			style="margin: 10px 10px 0 30px;">
			<tr>
				<td class="searchLabel">Property To :</td>
				<td class="searchLabel">	
<!--				< s : radio name="amenities" list="#application.amenities"  listValue="amenitiesName" listKey="id"/>-->
				</td>

			</tr>
			
		</table>
	</fieldset>
	</td>
	</tr>
		<tr>
		<td width="100%">
		<fieldset><legend>Distance from Public Facilities</legend>
		<table cellspacing="0" cellpadding="4" border="0"
			style="margin: 10px 10px 0 30px;">
			<tr>
				<td><s:text name="label.schools" />:</td>
				<td><s:textfield name="schools" /></td>
			</tr>
		
			<tr>
				<td><s:text name="label.hospitals" />:</td>
				<td><s:textfield name="hospitals" /></td>
			</tr>
			<tr>
				<td><s:text name="label.cityCenter" />:</td>
				<td><s:textfield name="cityCenter" /></td>
			</tr>
			<tr>
				<td><s:text name="label.airport" />:</td>
				<td><s:textfield name="airport" /></td>
			</tr>
			<tr>
				<td><s:text name="label.metro" />:</td>
				<td><s:textfield name="metro" /></td>
			</tr>
			<tr>
				<td><s:text name="label.railwayStation" />:</td>
				<td><s:textfield name="railwayStation" /></td>
			</tr>
			
			
		
		</table>
	</fieldset>
	</td>
	
	</tr>
	
		<tr>
		<td width="100%">
		<fieldset><legend>Other Details</legend>
		<table cellspacing="0" cellpadding="4" border="0"
			style="margin: 10px 10px 0 30px;">
			<tr>
				<td><s:text name="label.shortDesc" />:</td>
				<td><s:textfield name="shortDesc" /></td>
			</tr>
		
			<tr>
				<td><s:text name="label.detailDesc" />:</td>
				<td><s:textfield name="detailDesc" /></td>
			</tr>
			<tr>
				<td><s:text name="label.nearByDetails" />:</td>
				<td><s:textfield name="nearByDetails" /></td>
			</tr>
			<tr>
				<td><s:text name="label.uploadImage" />:</td>
				<td><s:file name="propertyImage" /></td>
			</tr>
			
			
			
		
		</table>
	</fieldset>
	</td>
	</tr>
	<tr>
		<td width="100%">
		
		<table cellspacing="0" cellpadding="4" border="0"
			style="margin: 10px 10px 0 30px;">
			<tr>
				<td class="searchLabel"><input type="button" value="Submit" onClick="javascript:createFiles()" /></td>
				<td><input type="button" value="Cancel" /><s:submit value="Submit" action="addProperties" /></td>

			</tr> 
			
			
			
			
			
			
		
		</table>
	
	</td>
	</tr>
</table>
</s:form>
</div>
</div>
